import request from '@/utils/request'

//上传合同
export function uploadContract(data) {
  return request({
    url: '/contract/upload',
    method: 'post',
    data
  })
}

//分页查询合同
export function getContractList(data) {
  return request({
    url: '/contract/list',
    method: 'post',
    data
  })
}




//合同详情
export function getContractDetail(id) {
  return request({
    url: `/contract/list/${id}`,
    method: 'get'
  })
}

//合同预览
export function getContractPreview(id) {
  return request({
    url: `/contract/url/${id}`,
    method: 'get'
  })
}

//添加合同
export function addContract(data) {
  return request({
    url: '/contract/contract_subject',
    method: 'post',
    data
  })
}
